Ext.define('Zm.view.system.Login', {
    extend: 'Ext.window.Window',
    alias : 'widget.login',
    requries:['Ext.form.Panel','Ext.form.field.Text','Ext.form.field.ComboBox','Zm.i18n.Lang'],
    layout: 'fit',
    autoShow: true,
    width:300,
    closable: false,
    resizable: false,
    plain: true,
    //height:160,
    //preventHeader:true,
    header:false,
    initComponent: function() {
        var me = this,
            lang = Zm.i18n.Lang;
        me.items = [{
            title : lang.tLoginTitle,
            xtype: 'form',
            frame: true,
            fieldDefaults:{
                labelAlign:'right',
                labelWidth:60
            },
            defaults: {
                anchor: '98%',
                enableKeyEvents:true
            },
            defaultType:'textfield',
            buttonAlign:'center',
            items: [{
                name : 'username',
                fieldLabel: lang.tLogName
            },{
                inputType: 'password',
                name : 'passwd',
                fieldLabel: lang.tPassWd
           }],
			buttons:[{
				text: lang.tLogin,
				action: 'login'
			},{
				text: lang.tReset,
				action: 'reset'
			}]
		}];

        me.callParent(arguments);
    }
});